<?
CheckLogin();	
	function CheckLogin()
	{
		if(isset($_COOKIE['username']) && $_COOKIE['username'] !='')	
		{
			return '1';
		}
		else
		{
			header('Location: login.php');	
		}
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Đao Kiếm Vô Tình Online</title>
<link href="css/styles.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="container">
  <div class="close-beta"><img src="images/top_center.png" width="772" height="143" /></div>
  <div class="main-content">
    <div class="forum-main"> <a href="/"><img src="images/logo.png" width="220" height="249" /></a> <a href="http://diendan.daokiemvotinh.com" target="_blank">
      <div class="diendan">&nbsp;</div>
      </a> <a href="http://www.facebook.com/pages/%C4%90ao-Ki%E1%BA%BFm-V%C3%B4-T%C3%ACnh-Online/316889155100550" target="_blank">
      <div class="fanpage">&nbsp;</div>
      </a> </div>
    <div class="payment">
      <h1>Chọn Server</h1>
      <a href='server.php' title="Local"><div class="chonserver">Thiên Mệnh<!--<span class="IconNews">New</span>--> </div></a>
    </div>
    <div class="payment-left">
      <ul class="menu-payment">
        <a href="nap-the.php"><li class="nap-the-cao active">&nbsp;</li></a>
        <a href="#"><li class="lich-su-giao-dich">&nbsp;</li></a>
        <a href="change-password.php"><li class="thong-tin-ca-nhan">&nbsp;</li></a>
      </ul>
    </div>
  </div>
  <div class="bottom-image">&nbsp;</div>
</div>
<script type="text/javascript">
function validateForm()
{
 
	var x=document.forms["myForm"]["pin"].value;
	var y=document.forms["myForm"]["serial"].value;
	var provider = document.forms["myForm"]["provider"].value;

	if(provider == 'VTT'|| provider == 'FPT'|| provider == 'VTC'||provider == 'VNP'||provider == 'VMS')
	{
	
	if (x==null || x=='' || y==null || y=='')
	  {  
	  alert("Can phai nhap du lieu cho mã thẻ  và serial");  
	  
	  return false;
	  }
	}
	else if (x==null || x=='' || x=='Ma the')
	{  
	  alert("Can phai nhap du lieu cho mã thẻ");	  
	  return false;
	}
}
  function change(){
	var provider = document.forms["myForm"]["provider"].value;
	if(provider == 'VTT'|| provider == 'FPT'|| provider == 'VTC'|| provider == 'VNP'|| provider == 'VMS')
	{
		document.getElementById('seri').innerHTML="*";
	}else{
		document.getElementById('seri').innerHTML="";
	}
  }
  
  
 function setOptionText(ExSelect, theArray) {
     for (loop = 0; loop < ExSelect.options.length; loop++) {
          ExSelect.options[loop].text = theArray[loop];
     }
}
</script>
</body>
</html>
